package subscriber

import (
	"log"

	feeds "git.oschina.net/fanbuchi/xgggh/feeds/srv/proto/feed"
	"golang.org/x/net/context"
	//"git.oschina.net/fanbuchi/xgggh/feeds/db"
)

type Feeds struct{}

func (e *Feeds) Handle(ctx context.Context, msg *feeds.Message) error {
	log.Print("Handler Received message: ", msg.Say)
	//db.GetDB().Close()
	return nil
}

func Handler(ctx context.Context, msg *feeds.Message) error {
	log.Print("Function Received message: ", msg.Say)
	return nil
}
